<template>
	<div class="home">
		<cmd-nav-bar iconOne="menu" back left-text="宠物相册"></cmd-nav-bar>
		<div class="not_thing"></div>
		<div class="img_box" v-for="n in pictarray">
			<!-- <img :src="$images['dog/map']" alt=""> -->
			<img :src="n" alt="">

		</div>
	</div>
</template>
<script>
	import cmdNavBar from "@/components/cmd-nav-bar/cmd-nav-bar.vue"
	import pets1 from "@/pages/myimg/dog1.jpg"
	import pets2 from "@/pages/myimg/dog2.jpg"
	import pets3 from "@/pages/myimg/5.jpg"
	import pets4 from "@/pages/myimg/6.jpg"
	import pets5 from "@/pages/myimg/7.jpg"
	import pets6 from "@/pages/myimg/4.jpg"
	import pets7 from "@/pages/myimg/dog1.jpg"
	import pets8 from "@/pages/myimg/a2.jpg"
	import pets9 from "@/pages/myimg/a3.jpg"
	import pets10 from "@/pages/myimg/13.jpg"

	export default {
		props: {},
		components: {
			cmdNavBar
		},
		data() {
			return {
				pictarray: [pets1,pets2,pets3,pets4,pets5,pets6,pets7]
			}
		},
		methods: {},
		watch: {},

		onReachBottom() { //页面上拉触底事件的处理函数

		},
		onPullDownRefresh() { //监听用户下拉动作，一般用于下拉刷新
			//需要在 pages.json 里，找到的当前页面的pages节点，并在 style 选项中开启 enablePullDownRefresh
			//uni.startPullDownRefresh(); 开启
			// uni.stopPullDownRefresh(); 关闭
		},
		onUnload() { //监听页面卸载

		},
		onHide() { //监听页面隐藏

		},
		onLoad() { // 替代 created 监听页面加载，其参数为上个页面传递的数据，参数类型为Object（用于页面传参），参考示例

		},
		onReady() { //替代 mounted 监听页面初次渲染完成

		},

		onShow() { //监听页面显示
			//生命周期
		}
	}
</script>
<style scoped>
	.home {
		width: 100%;
		height: 100%;
	}

	.img_box {
		width: 20%;
		height: 20vw;
		margin-top: 10upx;
		margin-left: 4%;
		float: left;
	}

	.not_thing {
		width: 100%;
		height: 18vw;
		background: #f8f8f8;
	}

	img {
		width: 100%;
		height: 100%;
	}
</style>
